package com.hy.thread;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.DisposableBean;
import org.springframework.stereotype.Repository;

@Repository
public class ThreadPoolDestroy implements DisposableBean {
	protected final Logger logBase = LoggerFactory.getLogger(ThreadPoolDestroy.class);
	@Override
	public void destroy() throws Exception {
		logBase.info("ThreadPoolDestroy.Info:----------start shutdown threadPool");
		ThreadPoolService.shutdown();
		logBase.info("ThreadPoolDestroy.Info:----------over shutdown threadPool");
	}

}
